package com.usian.entity.day14;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/*
    Date:2023/8/11
    Author:刘帮祺
*/
@TableName("emp")
@ToString
@Data
public class Emp {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String img;
    private String ename;
    @TableField(value = "node_id")
    private String nodeId;
    private String sex;
    private String personal;
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    private String status;
    @TableField(value = "part_id")
    private Integer partId;
    private String number;
    @TableField(value = "team_id")
    private Integer teamId;
    @TableField(value = "unit_id")
    private Integer unitId;
    private String username;
    private String password;
}
